package com.ai.entity.made.camera;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 操作摄像头入参实体
 */
@Data
@Accessors(chain = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class SwitchCameraAlgorithmBO {

    private int cameraId;
    private String username;
    private String password;
    private String ip;
    private String url;
    private int state;
    private String cameraCode;
    private String planNo;
    /**
     * 端口
     */
    private String port;
    /**
     * 取流方式 1RTSP 2天地伟业SDK 3海康SDK
     */
    private Integer streamWay;
    /**
     * 检测次数
     */
    private Integer detectionTimes;
    /**
     * 信号表主键
     */
    private Integer taskId;
    /**
     * 状态 2开启直播 3关闭直播 4开始算法 5关闭算法
     */
    private Integer status;
    /**
     * 炉门编号
     */
    private String doorNum;
    /**
     * 开启功能，功能对应的区域
     */
    private List<SwitchCameraFunctionAlgorithmBO> functions;

    /**
     * 0:软解码，1：硬解码
     */
    private Integer switchDecoderType;

    /**
     * 解码gpu模块选择
     */
    private Integer checkGpu;

    private Map<String, Object> extendedProperties = new HashMap<>();

    public SwitchCameraAlgorithmBO extendedPropertiesPut(String key, Object obj) {
        extendedProperties.put(key, obj);
        return this;
    }

}
